#include <stdio.h>

int main()
{
    char key;
    while (1) {
        key = getchar();
        printf("key: <%02X, %c>\n", key, key);
        if (key == 'q') {
            break;
        }
    }

    return 0;
}
